package com.txunda.zhuohired.aty.manage.home;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;

import com.lidroid.xutils.view.annotation.ViewInject;
import com.txunda.zhuohired.R;
import com.txunda.zhuohired.adapter.manage.home.CompanyWelfareAdapter;
import com.txunda.zhuohired.base.BaseAty;

/**
 * 创建人： Txd_Cjh
 * 创建时间： 2018/3/13 11:13
 * 功能描述：公司福利
 * 联系方式：jiahuanchen@126.com
 */

public class CompanyWelfareAty extends BaseAty {
    /**
     * 公司福利
     */
    @ViewInject(R.id.tv_layout_white_center)
    private TextView tv_layout_white_center;
    /**
     * 保存
     */
    @ViewInject(R.id.tv_layout_white_right)
    private TextView tv_layout_white_right;
    /**
     * listView
     */
    @ViewInject(R.id.lv_company_welfare)
    private ListView lv_company_welfare;

    private CompanyWelfareAdapter companyWelfareAdapter;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        showStatusBar(R.id.layout_white_head);
        tv_layout_white_center.setText("公司福利");
        tv_layout_white_right.setVisibility(View.VISIBLE);
        tv_layout_white_right.setText("保存");
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.aty_company_welfare;
    }

    @Override
    protected void initialized() {

    }

    @Override
    protected void requestData() {
initAdapter();
    }

    private void initAdapter(){
        companyWelfareAdapter = new CompanyWelfareAdapter(this);
        lv_company_welfare.setAdapter(companyWelfareAdapter);
    }
}
